home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / µSim 1.0.5 / FabLibsƒ / RegistrationUSA.r < prev    next >
Encoding:
Text File  |  1995-11-28  |  7.1 KB  |  320 lines  |  [TEXT/CWIE]

  1. /*
  2. Copyright © 1993,1994 by Fabrizio Oddone
  3. ••• ••• ••• ••• ••• ••• ••• ••• ••• •••
  4. This source code is distributed as freeware: you can copy, exchange, modify this
  5. code as you wish. You may include this code in any kind of application: freeware,
  6. shareware, or commercial, provided that full credits are given.
  7. You may not sell or distribute this code for profit.
  8. */
  9. #include    "FabLibResIDs.h"
  10.  
  11. #define NumTextLines        2
  12.  
  13. resource 'ALRT' (kALRT_REGCANNOTREPLACE, purgeable) {
  14.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  15.     kALRT_REGCANNOTREPLACE,
  16.     {    /* array: 4 elements */
  17.         /* [1] */
  18.         OK, visible, sound2,
  19.         /* [2] */
  20.         OK, visible, sound2,
  21.         /* [3] */
  22.         OK, visible, sound2,
  23.         /* [4] */
  24.         OK, visible, sound2
  25.     },
  26.     alertPositionMainScreen
  27. };
  28.  
  29. resource 'DITL' (kALRT_REGCANNOTREPLACE, purgeable) {
  30.     {    /* array DITLarray: 2 elements */
  31.         /* [1] */
  32.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  33.         Button {
  34.             enabled,
  35.             "OK"
  36.         },
  37.         /* [2] */
  38.         {TextTop, TextLeft, TextBottom, TextRight},
  39.         StaticText {
  40.             disabled,
  41.             "You cannot save over an existing document; please try again."
  42.         }
  43.     }
  44. };
  45.  
  46. #define NumTextLines        6
  47.  
  48. resource 'ALRT' (kALRT_REGSUCCESSSAVED, purgeable) {
  49.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  50.     kALRT_REGSUCCESSSAVED,
  51.     {    /* array: 4 elements */
  52.         /* [1] */
  53.         OK, visible, silent,
  54.         /* [2] */
  55.         OK, visible, silent,
  56.         /* [3] */
  57.         OK, visible, silent,
  58.         /* [4] */
  59.         OK, visible, silent
  60.     },
  61.     alertPositionMainScreen
  62. };
  63.  
  64. resource 'DITL' (kALRT_REGSUCCESSSAVED, purgeable) {
  65.     {    /* array DITLarray: 2 elements */
  66.         /* [1] */
  67.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  68.         Button {
  69.             enabled,
  70.             "OK"
  71.         },
  72.         /* [2] */
  73.         {TextTop, TextLeft, TextBottom, TextRight},
  74.         StaticText {
  75.             disabled,
  76.             "The document “^0” has been successfully saved. "
  77.             "You may print this document with SimpleText or your favorite "
  78.             "text editing application."
  79.         }
  80.     }
  81. };
  82.  
  83. #define NumTextLines        5
  84.  
  85. resource 'ALRT' (kALRT_REGDISKFULL, purgeable) {
  86.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  87.     kALRT_REGDISKFULL,
  88.     {    /* array: 4 elements */
  89.         /* [1] */
  90.         OK, visible, sound1,
  91.         /* [2] */
  92.         OK, visible, sound1,
  93.         /* [3] */
  94.         OK, visible, sound1,
  95.         /* [4] */
  96.         OK, visible, sound1
  97.     },
  98.     alertPositionMainScreen
  99. };
  100.  
  101. resource 'DITL' (kALRT_REGDISKFULL, purgeable) {
  102.     {    /* array DITLarray: 2 elements */
  103.         /* [1] */
  104.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  105.         Button {
  106.             enabled,
  107.             "OK"
  108.         },
  109.         /* [2] */
  110.         {TextTop, TextLeft, TextBottom, TextRight},
  111.         StaticText {
  112.             disabled,
  113.             "The document “^0” has not been successfully saved, "
  114.             "because the disk is full. "
  115.             "Try saving onto another disk."
  116.         }
  117.     }
  118. };
  119.  
  120. #define NumTextLines        5
  121.  
  122. resource 'ALRT' (kALRT_REGUNKNOWNWRITEERROR, purgeable) {
  123.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  124.     kALRT_REGUNKNOWNWRITEERROR,
  125.     {    /* array: 4 elements */
  126.         /* [1] */
  127.         OK, visible, sound1,
  128.         /* [2] */
  129.         OK, visible, sound1,
  130.         /* [3] */
  131.         OK, visible, sound1,
  132.         /* [4] */
  133.         OK, visible, sound1
  134.     },
  135.     alertPositionMainScreen
  136. };
  137.  
  138. resource 'DITL' (kALRT_REGUNKNOWNWRITEERROR, purgeable) {
  139.     {    /* array DITLarray: 2 elements */
  140.         /* [1] */
  141.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  142.         Button {
  143.             enabled,
  144.             "OK"
  145.         },
  146.         /* [2] */
  147.         {TextTop, TextLeft, TextBottom, TextRight},
  148.         StaticText {
  149.             disabled,
  150.             "The document “^0” has not been successfully saved, "
  151.             "because of an error ^1. "
  152.             "Try saving onto another disk."
  153.         }
  154.     }
  155. };
  156.  
  157. #define NumTextLines        2
  158.  
  159. resource 'ALRT' (kALRT_REGCOULDNOTOPENFORWRITING, purgeable) {
  160.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  161.     kALRT_REGCOULDNOTOPENFORWRITING,
  162.     {    /* array: 4 elements */
  163.         /* [1] */
  164.         OK, visible, sound1,
  165.         /* [2] */
  166.         OK, visible, sound1,
  167.         /* [3] */
  168.         OK, visible, sound1,
  169.         /* [4] */
  170.         OK, visible, sound1
  171.     },
  172.     alertPositionMainScreen
  173. };
  174.  
  175. resource 'DITL' (kALRT_REGCOULDNOTOPENFORWRITING, purgeable) {
  176.     {    /* array DITLarray: 2 elements */
  177.         /* [1] */
  178.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  179.         Button {
  180.             enabled,
  181.             "OK"
  182.         },
  183.         /* [2] */
  184.         {TextTop, TextLeft, TextBottom, TextRight},
  185.         StaticText {
  186.             disabled,
  187.             "Could not open the document for writing. "
  188.             "Try saving onto another disk."
  189.         }
  190.     }
  191. };
  192.  
  193. #define NumTextLines        2
  194.  
  195. resource 'ALRT' (kALRT_REGCOULDNOTCREATE, purgeable) {
  196.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  197.     kALRT_REGCOULDNOTCREATE,
  198.     {    /* array: 4 elements */
  199.         /* [1] */
  200.         OK, visible, sound1,
  201.         /* [2] */
  202.         OK, visible, sound1,
  203.         /* [3] */
  204.         OK, visible, sound1,
  205.         /* [4] */
  206.         OK, visible, sound1
  207.     },
  208.     alertPositionMainScreen
  209. };
  210.  
  211. resource 'DITL' (kALRT_REGCOULDNOTCREATE, purgeable) {
  212.     {    /* array DITLarray: 2 elements */
  213.         /* [1] */
  214.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  215.         Button {
  216.             enabled,
  217.             "OK"
  218.         },
  219.         /* [2] */
  220.         {TextTop, TextLeft, TextBottom, TextRight},
  221.         StaticText {
  222.             disabled,
  223.             "Could not create the document. "
  224.             "Try saving it with another name."
  225.         }
  226.     }
  227. };
  228.  
  229. #define NumTextLines        3
  230.  
  231. resource 'ALRT' (kALRT_WOWTHATMANYCOPIES, purgeable) {
  232.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  233.     kALRT_WOWTHATMANYCOPIES,
  234.     {    /* array: 4 elements */
  235.         /* [1] */
  236.         OK, visible, sound1,
  237.         /* [2] */
  238.         OK, visible, sound1,
  239.         /* [3] */
  240.         OK, visible, sound1,
  241.         /* [4] */
  242.         OK, visible, sound1
  243.     },
  244.     alertPositionParentWindowScreen
  245. };
  246.  
  247. resource 'DITL' (kALRT_WOWTHATMANYCOPIES, purgeable) {
  248.     {    /* array DITLarray: 2 elements */
  249.         /* [1] */
  250.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  251.         Button {
  252.             enabled,
  253.             "OK"
  254.         },
  255.         /* [2] */
  256.         {TextTop, TextLeft, TextBottom, TextRight},
  257.         StaticText {
  258.             disabled,
  259.             "Wow! That many copies! "
  260.             "Send one million dollars, and I’ll be a happy man."
  261.         }
  262.     }
  263. };
  264.  
  265. resource 'STR ' (kSTR_RegPROMPT, purgeable) {
  266.     "Save registration form as:"
  267. };
  268.  
  269. resource 'STR ' (kSTR_RegDEFNAME, purgeable) {
  270.     "Registration"
  271. };
  272.  
  273. resource 'STR ' (kSTR_RegDECALLOWED, purgeable) {
  274.     "0123456789\$7F"
  275. };
  276.  
  277. resource 'STR#' (1100, purgeable) {
  278.     {
  279.         /* [1] ok */
  280.             "To save the registration form in a text document, click here.",
  281.         /* [2] cancel */
  282.             "To cancel, click here.",
  283.         /* [3] Name */
  284.             "Enter your full name.",
  285.         /* [4] Company */
  286.             "Enter your company name, if applicable.",
  287.         /* [5] Address */
  288.             "Enter your address.",
  289.         /* [6] City */
  290.             "Enter your city.",
  291.         /* [7] State */
  292.             "Enter your state.",
  293.         /* [8] ZIP */
  294.             "Enter your ZIP code.",
  295.         /* [9] Country */
  296.             "Enter your country name.",
  297.         /* [10] e-mail */
  298.             "Enter your electronic mail addresses. This is important because you can obtain "
  299.             "upgrades from me via e-mail. "
  300.             "(i.e. Internet, America Online, Compuserve, AppleLink, MCI Mail, etc.)",
  301.         /* [11] Phone */
  302.             "Enter your phone number, if you wish.",
  303.         /* [12] FAX */
  304.             "Enter your fax phone number, if you wish.",
  305.         /* [13] copies */
  306.             MACRO_COPIES,
  307.         /* [14] from */
  308.             "Enter how you heard of this software, and how you obtained it. "
  309.             "(i.e. a friend, a Mac User Group, a Bulletin Board System, a CD-ROM, "
  310.             "a magazine, an Internet site, etc.)",
  311.         /* [15] suggestions */
  312.             "Enter your comments about this software. Let me know your suggestions, problems, "
  313.             "anything you could think of.",
  314.         /* [16] price */
  315.             "Here appears the sum due for this software. The more copies you "
  316.             "buy, the less you pay per copy.",
  317.     }
  318. };
  319.  
  320.